<include file="Public:header" />
<script type="text/javascript" src="__PUBLIC__/admin/js/module_tag.js"></script>
<script type="text/javascript">
$(function(){
	layout.listCheckAll();
	layout.listTableColor();
	layout.listFormSelectType('articleListForm','operateType','selectTypeBtn');	
	$('.edit_tag,#ajaxAddTag').on('click',function(){
		var $this=$(this);
		var id=$this.attr('data_id');
		tagAddAndEdit.init(id);
	});
	layout.delDataConfirm();
});
</script>
<body class="mainBackground">
	<include file="Public:menu" />
	<div class="main" id="mainContainer">
    	<div class="content_box">
        	<div class="content_box_t">
            	<h3 class="fl">
                管理标签
                </h3>
            </div>
            <div class="content_box_c">
            	<div class="clearfix">
            	<form action="__URL__" method="get" class="pb20 fl" id="articleSearchForm">
                	<label class="searchForm_title">关键词</label><input class="text_input samll_input" type="text" name="title" value="{$param.title}" />             
                    <input type="submit" value="搜索" class="public_button ml10" />   
                </form> 
                <input type="button" value="新增标签" class="public_button fr" id="ajaxAddTag" data_id="0" />
                </div>         
                <notempty name="datas">
                <form action="__URL__/del" method="POST" id="articleListForm">
            	<table class="public_table">
					<thead>
						<tr>
							<th><input class="check_all" type="checkbox" /></th>
                            <th>ID</th>
							<th>标题</th>
                            <th>CODE</th>
                            <th>热度</th>
							<th>操作</th>
						</tr>	
					</thead> 
					<tbody>
                    <volist name="datas" id="data">
						<tr>
							<td><input type="checkbox"  name="id[]" value="{$data.id}"/></td>
                            <td>{$data.id}</td>
							<td>{$data.title}</td>
                            <td>{$data.code}</td>
                            <td>{$data.hit}</td>
							<td>
								<a href="javascript:void(0);" title="编辑" class="edit_tag mr5" data_id="{$data.id}">编辑</a>
								<a href="{:U('Tag/del',array('id'=>$data[id]))}" title="删除" class="delHandle">删除</a> 
							</td>
						</tr>
					</volist>	                                              
					</tbody>  
					<tfoot>
						<tr>
							<td colspan="6">
								<div class="bulk_actions fl">
											<select name="operateType" id="operateType">
												<option value="__URL__/del">删除</option>
											</select>
                                            <input type="submit" value="确定"  class="public_button" id="selectTypeBtn"/>
								</div>
										
								<div class="pagination fr">
                                	{$page}
								</div>
								<div class="clear"></div>
							</td>
						</tr>
					</tfoot>                    
				</table>
                </form>
                </notempty>
            </div>
        </div>            
    </div>
</body>
</html>
